package edu.buct.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZYM
 * @since 2023-05-04
 */
@Data
@ApiModel(value = "C2对象", description = "")
public class C2 implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("日期")
    //private LocalDateTime date;
    private String date;

    @ApiModelProperty("电流")
    private Float a;

    @ApiModelProperty("电压")
    private Float v;

    @ApiModelProperty("视在功率")
    private Float kva;

    @ApiModelProperty("电能消耗")
    private Float kwh;

    @ApiModelProperty("PF")
    private Float pf;

    public C2() {
    }

    public C2(Integer id, String date, Float a, Float v, Float kva, Float kwh, Float pf) {
        this.id = id;
        this.date = date;
        this.a = a;
        this.v = v;
        this.kva = kva;
        this.kwh = kwh;
        this.pf = pf;
    }

    @Override
    public String toString() {
        return "C2{" +
                "id=" + id +
                ", date='" + date + '\'' +
                ", a=" + a +
                ", v=" + v +
                ", kva=" + kva +
                ", kwh=" + kwh +
                ", pf=" + pf +
                '}';
    }
}
